Micron Document
🎖️GitЯра🎖️

Node / meshtastic / Meshtastic-Android / files / app / src / google / java / com / geeksville / mesh / ui / map / components / WaypointMarkers.kt

Displaying Raw • Download

app/src/google/java/com/geeksville/mesh/ui/map/components/WaypointMarkers.kt ui_message_list (be3f882f) Text, 2.74 KB

T8b949e/*
* Copyright (c) 2025 Meshtastic LLC
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/

Tff7b72package T7ee787com.geeksville.mesh.ui.map.components

Tff7b72import T7ee787android.widget.Toast
Tff7b72import T7ee787androidx.compose.runtime.Composable
Tff7b72import T7ee787androidx.compose.ui.platform.LocalContext
Tff7b72import T7ee787com.geeksville.mesh.MeshProtos
Tff7b72import T7ee787com.geeksville.mesh.R
Tff7b72import T7ee787com.geeksville.mesh.ui.map.BaseMapViewModel
Tff7b72import T7ee787com.geeksville.mesh.ui.node.DEG_D
Tff7b72import T7ee787com.google.android.gms.maps.model.BitmapDescriptor
Tff7b72import T7ee787com.google.android.gms.maps.model.LatLng
Tff7b72import T7ee787com.google.maps.android.compose.Marker
Tff7b72import T7ee787com.google.maps.android.compose.rememberUpdatedMarkerState

Tf0883e@Composable
Tff7b72fun Td2a8ffWaypointMarkersTb4b4b4(
Te6edf3displayableWaypointsTb4b4b4: Te6edf3ListTff7b72<Te6edf3MeshProtosTb4b4b4.Te6edf3WaypointTff7b72>Tb4b4b4,
Te6edf3mapFilterStateTb4b4b4: Te6edf3BaseMapViewModelTb4b4b4.Te6edf3MapFilterStateTb4b4b4,
Te6edf3myNodeNumTb4b4b4: Tffa657IntTb4b4b4,
Te6edf3isConnectedTb4b4b4: Tffa657BooleanTb4b4b4,
Te6edf3unicodeEmojiToBitmapProviderTb4b4b4: Tb4b4b4(Tffa657IntTb4b4b4) Tff7b72-Tff7b72> Te6edf3BitmapDescriptorTb4b4b4,
Te6edf3onEditWaypointRequestTb4b4b4: Tb4b4b4(Te6edf3MeshProtosTb4b4b4.Te6edf3WaypointTb4b4b4) Tff7b72-Tff7b72> Tffa657UnitTb4b4b4,
Tb4b4b4) Tb4b4b4{
Tff7b72val Te6edf3context Tff7b72= Te6edf3LocalContextTb4b4b4.Te6edf3current
Tff7b72if Tb4b4b4(Te6edf3mapFilterStateTb4b4b4.Te6edf3showWaypointsTb4b4b4) Tb4b4b4{
Te6edf3displayableWaypointsTb4b4b4.Te6edf3forEach Tb4b4b4{ Te6edf3waypoint Tff7b72-Tff7b72>
Tff7b72val Te6edf3markerState Tff7b72=
Te6edf3rememberUpdatedMarkerStateTb4b4b4(Te6edf3position Tff7b72= Te6edf3LatLngTb4b4b4(Te6edf3waypointTb4b4b4.Te6edf3latitudeI Tff7b72* Te6edf3DEG_DTb4b4b4, Te6edf3waypointTb4b4b4.Te6edf3longitudeI Tff7b72* Te6edf3DEG_DTb4b4b4)Tb4b4b4)

Te6edf3MarkerTb4b4b4(
Te6edf3state Tff7b72= Te6edf3markerStateTb4b4b4,
Te6edf3icon Tff7b72=
Tff7b72if Tb4b4b4(Te6edf3waypointTb4b4b4.Te6edf3icon Tff7b72=Tff7b72= T79c0ff0Tb4b4b4) Tb4b4b4{
Te6edf3unicodeEmojiToBitmapProviderTb4b4b4(Te6edf3PUSHPINTb4b4b4) T8b949e// Default icon (Round Pushpin)
Tb4b4b4} Tff7b72else Tb4b4b4{
Te6edf3unicodeEmojiToBitmapProviderTb4b4b4(Te6edf3waypointTb4b4b4.Te6edf3iconTb4b4b4)
Tb4b4b4}Tb4b4b4,
Te6edf3title Tff7b72= Te6edf3waypointTb4b4b4.Te6edf3nameTb4b4b4,
Te6edf3snippet Tff7b72= Te6edf3waypointTb4b4b4.Te6edf3descriptionTb4b4b4,
Te6edf3visible Tff7b72= Tff7b72trueTb4b4b4,
Te6edf3onInfoWindowClick Tff7b72= Tb4b4b4{
Tff7b72if Tb4b4b4(Te6edf3waypointTb4b4b4.Te6edf3lockedTo Tff7b72=Tff7b72= T79c0ff0 Tff7b72|Tff7b72| Te6edf3waypointTb4b4b4.Te6edf3lockedTo Tff7b72=Tff7b72= Te6edf3myNodeNum Tff7b72|Tff7b72| Tff7b72!Te6edf3isConnectedTb4b4b4) Tb4b4b4{
Te6edf3onEditWaypointRequestTb4b4b4(Te6edf3waypointTb4b4b4)
Tb4b4b4} Tff7b72else Tb4b4b4{
Te6edf3ToastTb4b4b4.Te6edf3makeTextTb4b4b4(Te6edf3contextTb4b4b4, Te6edf3contextTb4b4b4.Te6edf3getStringTb4b4b4(Te6edf3RTb4b4b4.Te6edf3stringTb4b4b4.Te6edf3lockedTb4b4b4)Tb4b4b4, Te6edf3ToastTb4b4b4.Te6edf3LENGTH_SHORTTb4b4b4)Tb4b4b4.Te6edf3showTb4b4b4(Tb4b4b4)
Tb4b4b4}
Tb4b4b4}Tb4b4b4,
Tb4b4b4)
Tb4b4b4}
Tb4b4b4}
Tb4b4b4}

Tff7b72private Tff7b72const Tff7b72val Te6edf3PUSHPIN Tff7b72= T79c0ff0Te6edf3x1F4CD T8b949e// Unicode for Round Pushpin

Served by rngit 1.5.2 - Generated in 0.08s